<?php
    class Mysql{
        public $connect;
        public function __construct(){
            $con=mysqli_connect("127.0.0.1",'root','123456','2024','3306');
            if($con!==false){
                $this->connect=$con;
            }else{
                die("数据库链接失败");
            }
        }
    }

